<%@page import="com.ilibrary.constants.MyConstants"%>
<%@page import="com.ilibrary.web.vo.UserInfoVO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%
	UserInfoVO loginUser = (UserInfoVO)request.getSession().getAttribute(MyConstants.ILIBRARY_lOGIN_USER);
%>
	<div id="header">
		<div id="logo">
			<img onclick="location.href='<%=request.getContextPath() %>/client/index.action'" 
				src="<%=request.getContextPath()%>/template_images/search/logo.jpg" style="cursor: pointer;" height="44" width="76">
		</div>
		<h1 class="font_30px">我大成信图书馆书目检索系统</h1>
		<%
			if(loginUser == null) {
		%>
			<div style="color: #FFFFFF;">
				<form id="clientLoginForm" action="<%=request.getContextPath() %>/doLogin.action" method="post">
					<span id="loginm" style="line-height: 50px;">
						学工号 <span id="usnm"><input name="userId" id="userId" type="text"></span>
						密码 <span id="pswd"><input name="userPassword" id="userPassword" type="password"></span>
							<input name="userType" value="<%=MyConstants.ILIBRARY_LOGIN_TYPE_STU%>" type="hidden">
							<span id="loginss" onclick="check_user()">&nbsp;</span>
					</span>
				</form>
			</div>
		<%
			}else {
		%>
			<div id="navlogin" style="color: #FFFFFF;">
				<img src="<%=request.getContextPath()%>/template_images/search/icon_login.gif" height="11" width="16" />&nbsp;&nbsp;
				<a href="<%=request.getContextPath() %>/client/userCenter.action"><strong style="color: #fff;"><%=loginUser.getUserName() %></strong></a>
				&nbsp;&nbsp;<a onclick="doLogout()" href="javascript: void(0)">退出</a>
			</div>
		<%
			}
		%>
	</div>
	<div id="menu"></div>
